﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="SiteActionsToolbar2"
               Location="CommandUI.Ribbon.ListView"
               Sequence="1112"
               RegistrationId="100"
               RegistrationType="List" >
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Groups._children">
          <Group Id="UE.SharePoint.ImportExport.Group"
                 Description="$Resources:UE.SharePoint.ImportExport,ActionImportExportDescription"
                 Title="$Resources:UE.SharePoint.ImportExport,ActionImportExportTitle"
                 Sequence="21"
                 Template="Ribbon.Templates.Flexible2">
            <Controls Id="UE.SharePoint.ImportExport.Group.Controls">
              <Button Id="UE.SharePoint.ImportExport.Group.ImportSpreadsheetButton"
                Command="UE.SharePoint.ImportExport.ImportSpreadsheet"
                Sequence="10"
                ToolTipTitle="$Resources:UE.SharePoint.ImportExport,ActionImportSpreadsheetButtonToolTipTitle"
                ToolTipDescription="$Resources:UE.SharePoint.ImportExport,ActionImportSpreadsheetButtonToolTipDescription"
                Image32by32="/_layouts/Images/UE.SharePoint.ImportExport/import32.png"
                Description="$Resources:UE.SharePoint.ImportExport,ActionImportSpreadsheetButtonDescription"
                LabelText="$Resources:UE.SharePoint.ImportExport,ActionImportSpreadsheetButtonLabelText"
                TemplateAlias="o1" />
              <Button Id="UE.SharePoint.ImportExport.Group.ExportListSchemaButton"
                  Command="UE.SharePoint.ImportExport.ExportListSchema"
                  Sequence="20"
                  ToolTipTitle="$Resources:UE.SharePoint.ImportExport,ActionImportSpreadsheetButtonLabelText"
                  ToolTipDescription="$Resources:UE.SharePoint.ImportExport,ActionExportListSchemaButtonToolTipDescription"
                  Image32by32="/_layouts/Images/UE.SharePoint.ImportExport/jobs32.png"
                  Description="$Resources:UE.SharePoint.ImportExport,ActionExportListSchemaButtonDescription"
                  LabelText="$Resources:UE.SharePoint.ImportExport,ActionExportListSchemaButtonLabelText"
                  TemplateAlias="o1" />
              <Button Id="UE.SharePoint.ImportExport.Group.ExportAllItemsButton"
                Command="UE.SharePoint.ImportExport.ExportAllItems"
                Sequence="20"
                ToolTipTitle="$Resources:UE.SharePoint.ImportExport,ActionExportAllItemsButtonToolTipTitle"
                ToolTipDescription="$Resources:UE.SharePoint.ImportExport,ActionExportAllItemsButtonToolTipDescription"
                Image32by32="/_layouts/Images/UE.SharePoint.ImportExport/jobs32.png"
                Description="$Resources:UE.SharePoint.ImportExport,ActionExportAllItemsButtonDescription"
                LabelText="$Resources:UE.SharePoint.ImportExport,ActionExportAllItemsButtonLabelText"
                TemplateAlias="o1" />
            </Controls>
          </Group>
        </CommandUIDefinition>
        <CommandUIDefinition Location="Ribbon.ListItem.Scaling._children">
          <MaxSize Id="UE.SharePoint.ImportExport.MaxSize" Sequence="10" GroupId="UE.SharePoint.ImportExport.Group" Size="LargeMedium" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="UE.SharePoint.ImportExport.ImportSpreadsheet"
                          CommandAction="javascript:UE.SharePoint.ImportExport.IE.importClick({url: '{SiteUrl}/_layouts/UE.SharePoint.ImportExport/UploadPage.aspx?listId={ListId}'});"
                          EnabledScript="javascript:UE.SharePoint.ImportExport.IE.enabledScript();"/>
        <CommandUIHandler Command="UE.SharePoint.ImportExport.ExportListSchema"
                            CommandAction="javascript:UE.SharePoint.ImportExport.IE.exportSchemaClick();"
                            EnabledScript="javascript:UE.SharePoint.ImportExport.IE.enabledExportSchemaScript();"/>
        <CommandUIHandler Command="UE.SharePoint.ImportExport.ExportAllItems"
                            CommandAction="javascript:UE.SharePoint.ImportExport.IE.exportClick();"
                            EnabledScript="javascript:UE.SharePoint.ImportExport.IE.enabledExportScript();"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <CustomAction Id="UE.SharePoint.ImportExport.Script"
            Location="ScriptLink"
            ScriptSrc="~site/_layouts/UE.SharePoint.ImportExport/RibbonHandler.js"></CustomAction>
</Elements>
